package cn.com.sinux.spring.commons;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;

/**
 * Created by Administrator on 2015/9/11.
 */
public class PageHelper<T> extends PageRequest {

    private Page<T> page;

    public Page<T> getPage() {
        return page;
    }

    public void setPage(Page<T> page) {
        this.page = page;
    }

    public PageHelper(int page, int size) {
        super(page, size);
    }

    public PageHelper(int page, int size, Sort.Direction direction, String... properties) {
        super(page, size, direction, properties);
    }

    public PageHelper(int page, int size, Sort sort) {
        super(page, size, sort);
    }
}
